package com.enoram.gwt.desktop.client.place;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.place.shared.Place;

public class SecuredPlaceChangeEvent extends GwtEvent<SecuredPlaceChangeEventHandler> {



	  public static final Type<SecuredPlaceChangeEventHandler> TYPE = new Type<SecuredPlaceChangeEventHandler>();

	  private final SecuredPlace newPlace;

	  public SecuredPlaceChangeEvent(SecuredPlace newPlace) {
	    this.newPlace = newPlace;
	  }

	  @Override
	  public Type<SecuredPlaceChangeEventHandler> getAssociatedType() {
	    return TYPE;
	  }

	  public SecuredPlace getNewPlace() {
	    return newPlace;
	  }

	  @Override
	  protected void dispatch(SecuredPlaceChangeEventHandler handler) {
	    handler.onSecurePlaceChange(this);
	  }
	
}
